const rd = (start, end) => {
    return Math.floor(Math.random() * (end - start + 1)) + start
}

const getResources = async () => {

    await new Promise(resolve => setTimeout(resolve, 200+rd(0, 10)));
};

const getTransactions = async () => {

    await new Promise(resolve => setTimeout(resolve, 300+rd(0, 10)));
};

const getAuthProgress = async () => {

    await new Promise(resolve => setTimeout(resolve, 250+rd(0, 10)));
};

const getCredentials = async () => {

    await new Promise(resolve => setTimeout(resolve, 350+rd(0, 10)));
};

module.exports = {
    getResources,
    getTransactions,
    getAuthProgress,
    getCredentials
}; 